package com.ruoyi.parkmangement.service.impl;


import com.ruoyi.parkmangement.mapper.CarMapper;
import com.ruoyi.parkmangement.service.ParkingStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;


@Service
public class ParkingStatsServiceImpl implements ParkingStatsService {

    @Autowired
    private CarMapper carMapper;

    @Override
    public List<Map<String, Object>> getParkingStatistics() {
        return carMapper.selectParkingStats();
    }
}